package com.xzzz.expand.es.core;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xzzz.expand.es.core.annotation.EsId;
import com.xzzz.expand.es.core.annotation.EsIndex;
import lombok.Data;

@Data
@EsIndex(name = "index_learning")
@JsonInclude(JsonInclude.Include.NON_NULL)
class IndexLearningDTO {

    @EsId
    private String id;
    private String name;
    private String desc;

    IndexLearningDTO() {

    }

    IndexLearningDTO(String id, String name, String desc) {
        this.id = id;
        this.name = name;
        this.desc = desc;
    }
}
